package com.xyoto.community.utils;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@Service
public interface XYOtoOss {

    /**
     * 上传多图片
     * @param files
     * @param mouldName
     * @return
     * @throws IOException
     */
    String uploadFileAvatars(MultipartFile[] files , String mouldName) throws IOException;

    /**
     * 上传图片
     * @param file
     * @param mouldName
     * @return
     */
    String uploadFileAvatar(MultipartFile file, String mouldName) throws IOException;

    /**
     * 删除图片
     * @param url
     * @return
     */
    boolean deleteFileAvatar(String url);

}
